package com.lingkang.xcoa.data.dao;

import com.lingkang.xcoa.data.entity.OaRole;
import com.lingkang.xcoa.data.entity.OaUserRole;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * @author linke
 * @date 2020/8/25 23:15
 * @description
 */
public interface OaUserRoleMapper {

  int deleteByPrimaryKey(Integer id);

  int insertSelective(OaUserRole record);

  OaUserRole selectByPrimaryKey(Integer id);

  int updateByPrimaryKeySelective(OaUserRole record);

  void deleteRoleByUsername(String username);

  int insertManyRole(@Param("username") String username, @Param("roleId") List<Integer> roleId);
}
